/*
 * COMP6421 Project
 *  
 * This file is created by Yuan Tao (ewan.msn@gmail.com)
 * Licensed under GNU GPL v3
 * 
 * $Author: ewan.msn@gmail.com $
 * $Date: 2012-03-06 01:46:28 +0000 (Tue, 06 Mar 2012) $
 * $Rev: 62 $
 * $HeadURL: http://all-projects-concordia.googlecode.com/svn/comp6421/src/LexicalAnalyzer/Token.java $
 * 
 */

package LexicalAnalyzer;

public class Token implements Cloneable {
	public String file = null;		// file name
	public int line = 0;			// line number
	public int column = 0;			// the column of the first character
	public String token = null;		// 
	public int type;				//  
	
	public boolean error = false;	// true means the token is generated by error recovery technique

	
    public Object clone(){
    	Token tk = null;
        try{
        	tk = (Token)super.clone();
        }catch(CloneNotSupportedException e){
            e.printStackTrace();
        }
        return tk;
    }
}
